'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  //获取列表
  router.get('/api/list1',controller.home.list);
  //=====================================


  //注册  密码

  //登录
    router.post('/api/login',controller.user.login);

    //获取首页列表
    router.get('/api/list',controller.list.index);

    //添加购物车
    router.post('/api/addCar',controller.car.add);

    //修改
    router.put('/api/update',controller.car.update);

    //购物车列表
    router.get('/api/carlist',controller.car.carlist);
  
};
